home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / OS / FWGraphx / FWFontLi.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  1.7 KB  |  76 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWFontLi.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10.  
  11. #ifndef FWFONTLI_H
  12. #define FWFONTLI_H
  13.  
  14. #ifndef FWSTRING_H
  15. #include "FWString.h"
  16. #endif
  17.  
  18. #ifndef FWEXCLIB_H
  19. #include "FWExcLib.h"
  20. #endif
  21.  
  22. #ifndef FWTCOLL_H
  23. #include "FWTColl.h"
  24. #endif
  25.  
  26. //========================================================================================
  27. // CLASS FW_CFontList
  28. //========================================================================================
  29.  
  30. class FW_CFontList
  31. {
  32. public:
  33.     FW_DECLARE_AUTO(FW_CFontList)
  34.     friend class FW_CFontIterator;
  35.  
  36.     FW_CFontList();
  37.     virtual ~FW_CFontList();
  38.     
  39. private:
  40.     FW_TOrderedCollection<FW_CString>    fCollection;
  41. };
  42.  
  43. //========================================================================================
  44. // CLASS FW_CFontInterator
  45. //========================================================================================
  46.  
  47. class FW_CFontIterator
  48. {
  49. public:
  50.     FW_DECLARE_AUTO(FW_CFontIterator)
  51.  
  52.     FW_CFontIterator(); 
  53.     FW_CFontIterator(FW_CFontList* fontList); 
  54.     virtual ~FW_CFontIterator();
  55.  
  56.     FW_CString    First();
  57.         // Returns an empty string if the list is empty
  58.     FW_CString    Next();
  59.         // Returns an empty string if at the end of the list
  60.     FW_CString    Last();
  61.         // Returns an empty string if the list is empty
  62.     FW_CString    Previous();
  63.         // Return an empty string if at the beginning of the list
  64.     
  65.     FW_Boolean            IsNotComplete();
  66.  
  67. private:
  68.     FW_CFontList*                                fFontList;
  69.     FW_Boolean                                    fDeleteTheList;
  70.     FW_TOrderedCollectionIterator<FW_CString>*    fIterator;
  71. };
  72.  
  73. #endif
  74.  
  75.  
  76.